package com.eastfair.venuebooking.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.core.base.R;
import com.eastfair.venuebooking.dto.ExhibitionSegmentDTO;
import com.eastfair.venuebooking.entity.ExhibitionSegment;
import com.eastfair.venuebooking.entity.ExhibitionTask;

/**
 * <p>
 * 业务接口
 * 环节
 * </p>
 *
 * @author linan
 * @date 2022-06-08
 */
public interface ExhibitionSegmentService extends SuperService<ExhibitionSegment> {

    /**
     * 添加展会环节
     * @param exhibitionSegmentSaveDTO
     * @return
     */
    R addExhibitionSegment(ExhibitionSegmentDTO exhibitionSegmentSaveDTO);

    /**
     * 修改是否可删除状态
     * @param segmentId 环节ID
     * @param deleteAble 可删除的   1  可删除   0 不可删除
     */
    void updateDeleteAble(Long segmentId,Boolean deleteAble);

    /**
     * 修改是否可删除状态
     * @param exhibitionId 展会ID
     */
    void updateDeleteAble(ExhibitionTask exhibitionId);
}
